package com.mouliu.base;

import java.lang.reflect.Field;

public class Unsafe {
    public static Unsafe getUnsafe() {
        try {
            Field f = Unsafe.class.getDeclaredField("theUnsafe");
            f.setAccessible(true);
            return (Unsafe)f.get(null);
        } catch (Exception e) {
            /* ... */
        }
        return  null;
    }
    public static void main(String[] args){
        getUnsafe();
    }
}
